// 该文件用于表单单选，多选，下拉备选项引用
import { $demoi18n } from '@/utils/lang';

const mapLineDashs = [
  { label: $demoi18n('panel.option.solidLine'), value: 'solid' },
  { label: $demoi18n('panel.option.dashedLine'), value: 'dotted' },
];

const mapShowTypes = [
  { label: $demoi18n('panel.option.drill'), value: 'drill' },
  { label: $demoi18n('panel.option.graphic'), value: 'plane' },
];

const baseMapTypes = [
  { label: $demoi18n('panel.option.noBaselayer'), value: 'noBaselayer' },
  { label: 'URL', value: 'URL' },
];
const mapUrlOrigins = [
  { label: $demoi18n('panel.label.fromSystem'), value: 'select' },
  { label: $demoi18n('panelData.dataFromType.custom'), value: 'input' },
];
const mapProjections = [{ label: '4326', value: 'EPSG:4326' }, { label: '3857', value: 'EPSG:3857' }];
const mapLayerTypes = [
  { label: $demoi18n('common.options.pointLayer'), value: 'point' },
  { label: $demoi18n('common.options.faceLayer'), value: 'area' },
  { label: $demoi18n('common.options.lineLayer'), value: 'line' },
  { label: $demoi18n('common.options.jumpLineLayer'), value: 'jumpLine' },
];
const mapLegendStyleProps = [
  { label: $demoi18n('options.indicatorThresholdRange'), value: 'hasThreshold' },
  { label: $demoi18n('options.interthresholdRemarks'), value: 'hasItemDesc' },
  { label: $demoi18n('options.hierarchicalSummary'), value: 'hasTotal' },
  { label: $demoi18n('options.shrinking'), value: 'hasShrink' },
];
const mapJumpWireLineStyles = [
  // 临时用下拉选择
  { label: 'solid', value: 'solid' },
  { label: 'dashed', value: 'dashed' },
  { label: 'dotted', value: 'dotted' },
];
const layoutDirections = [{ label: '横排', value: 'row' }, { label: '纵排', value: 'column' }];
const thresholdDataTypes = [
  { label: $demoi18n('options.numerValue'), value: 'number' },
  { label: $demoi18n('options.string'), value: 'string' },
];
const fontFamilyOptions = [
  { label: 'unset', value: 'unset' },
  { label: 'Microsoft YaHei', value: 'Microsoft YaHei' },
  { label: 'Tahoma', value: 'Tahoma' },
  { label: 'Verdana', value: 'Verdana' },
  { label: 'sans-serif', value: 'sans-serif' },
  { label: 'Arial', value: 'Arial' },
  { label: 'Helvetica', value: 'Helvetica' },
  { label: 'monospace', value: 'monospace' },
  { label: 'Consolas', value: 'Consolas' },
  { label: 'Courier New', value: 'Courier New' },
];
const fontWeightOptions = [
  { label: 'normal', value: 'normal' },
  { label: 'bolder', value: 'bolder' },
  { label: 'bold', value: 'bold' },
  { label: '100', value: '100' },
  { label: '200', value: '200' },
  { label: '300', value: '300' },
  { label: '400', value: '400' },
  { label: '500', value: '500' },
  { label: '600', value: '600' },
  { label: '700', value: '700' },
  { label: '800', value: '800' },
];
const flexDirections = [
  { label: $demoi18n('panel.option.horizontal'), value: 'row' },
  { label: $demoi18n('common.options.vertical'), value: 'column' },
];

const backgroundSizeOptions = [
  { label: 'contain', value: 'contain' },
  { label: 'cover', value: 'cover' },
  { label: '100% 100%', value: '100% 100%' },
  { label: 'auto', value: 'auto' },
];

const backgroundRepeatOptions = [
  { label: 'repeat', value: 'repeat' },
  { label: 'no-repeat', value: 'no-repeat' },
  { label: 'repeat-x', value: 'repeat-x' },
  { label: 'repeat-y', value: 'repeat-y' },
  { label: 'space', value: 'space' },
  { label: 'round', value: 'round' },
  { label: 'space repeat', value: 'space repeat' },
];

const borderStyleOptions = [
  { label: 'none', value: 'none' },
  { label: 'solid', value: 'solid' },
  { label: 'hidden', value: 'hidden' },
  { label: 'dotted', value: 'dotted' },
  { label: 'dashed', value: 'dashed' },
  { label: 'double', value: 'double' },
  { label: 'groove', value: 'groove' },
  { label: 'ridge', value: 'ridge' },
  { label: 'inset', value: 'inset' },
  { label: 'outset', value: 'outset' },
];

const displayOptions = [
  { label: 'none', value: 'none' },
  { label: 'flex', value: 'flex' },
  { label: 'block', value: 'block' },
  { label: 'inline', value: 'inline' },
  { label: 'inline-block', value: 'inline-block' },
  { label: 'inline-flex', value: 'inline-flex' },
];

export {
  mapLineDashs,
  mapShowTypes,
  baseMapTypes,
  mapUrlOrigins,
  mapProjections,
  mapLayerTypes,
  mapLegendStyleProps,
  mapJumpWireLineStyles,
  layoutDirections,
  thresholdDataTypes,
  fontFamilyOptions,
  fontWeightOptions,
  flexDirections,
  backgroundSizeOptions,
  backgroundRepeatOptions,
  borderStyleOptions,
  displayOptions,
};

